{{if $index_act=='goods'}}
<ul class="select pull-left">
		<li class="select-list">
			<dl x>
				<dt>热门关键词 ：</dt>
				<dd><a  {{if !$kw}}class="selected"{{/if}} href="index.php?kw=&descs={{$descss}}">全部</a>
                <div class="keygroup">
                {{foreach from=$hot_keywords item=list key=key}}
				<a href="index.php?kw={{$list.keyword}}&descs={{$descss}}" {{if $kw==$list.keyword}}class="selected"{{/if}}>{{$list.keyword}}</a>
                 {{/foreach}}</div></dd>
			
			</dl>
            <span class="showMoreFilter">更多</span>
		</li>
		<li class="select-list">
			<dl >
				<dt>产品卖点 ：</dt>
				<dd><a {{if !$descss}}class="selected"{{/if}} href="index.php?kw={{$kw}}&descs=">全部</a>
				<div class="keygroup">{{foreach from=$descs item=list key=key}}
				<a href="index.php?descs={{$list.keyword}}&kw={{$kw}}" {{if $descss==$list.keyword}}class="selected"{{/if}}>{{$list.keyword}}  </a>
                {{/foreach}}
                </div></dd>
			</dl>
             <span class="showMoreFilter">更多</span>
		</li>
		
		<li class="select-result">
			<dl>
				<dt>已选条件：</dt>
				<dd class="select-no">{{if $kw}}<a href="index.php?kw=&descs={{$descss}}">{{$kw}}</a>{{/if}} {{if $descss}}<a href="index.php?kw={{$kw}}&descs=">{{$descss}}</a>{{/if}}</dd>
			</dl>
		</li>
	</ul>

{{/if}} 

<script>

$(function(){
	$(".showMoreFilter").click(function(){
		
		var dl = $(this).prev("dl");
		var height = dl.height();
		
		if(height>34)
		{
			dl.find(".keygroup").animate({"height":"24px"});
			
		}
		else
		{
			dl.find(".keygroup").animate({"height":"100%"});
			
		}
		
	})						
	$("#select1 dd").click(function () {
		$(this).addClass("selected").siblings().removeClass("selected");
		if ($(this).hasClass("select-all")) {
			$("#selectA").remove();
		} else {
			var copyThisA = $(this).clone();
			if ($("#selectA").length > 0) {
				$("#selectA a").html($(this).text());
			} else {
				$(".select-result dl").append(copyThisA.attr("id", "selectA"));
			}
		}
	});
	
	
	

	
	
});
</script>